package com.yc.ioc.bean5_conditional;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author zwei
 * @create 2024-07-29 9:57
 */
@Configuration
@ComponentScan(basePackages = "com.yc.bean5_conditional")
public class App_conditional {
    public static void main(String[] args) {
        ApplicationContext ac=new AnnotationConfigApplicationContext(App_conditional.class);
        WindowPath wp= (WindowPath) ac.getBean("windowsPath");
        System.out.println(wp);
    }
}
